Skip to content

feat(adapter-teams): add Select and RadioSelect support#341

Merged
dancer merged 2 commits intovercel:mainfrom
heyitsaamir:fix/teams-card-select-support
Apr 9, 2026
Merged

feat(adapter-teams): add Select and RadioSelect support#341
dancer merged 2 commits intovercel:mainfrom
heyitsaamir:fix/teams-card-select-support

Conversation

@heyitsaamir
Copy link
Copy Markdown
Contributor

@heyitsaamir heyitsaamir commented Apr 7, 2026

Radio selects and selects weren't working for the Teams adapter. Unlike Slack, where selecting an option automatically fires the action handler, Teams Adaptive Cards only submit input values when the user explicitly presses a button.

To bridge this gap, this PR:

  • Maps Select and RadioSelect card elements to Teams Adaptive Card ChoiceSetInput (compact and expanded styles respectively)
  • Auto-injects a "Submit" button at the end of a card when there are select/radio_select inputs but no explicit buttons — since Teams requires an explicit submit action to collect input values
  • When the auto-injected submit is pressed, fans out the payload into individual onAction calls per input, so each select/radio_select fires its own handler just like it would on Slack
Screen.Recording.2026-04-06.at.10.40.30.PM.mov

Map Select and RadioSelect card elements to Teams Adaptive Card
ChoiceSetInput (compact and expanded styles). Auto-inject a submit
button when inputs exist without explicit buttons, and fan out the
auto-submit payload into individual onAction calls per input.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 7, 2026

@heyitsaamir is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@bensabic bensabic requested a review from dancer April 7, 2026 05:48
Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 6:08pm
chat-sdk-nextjs-chat Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 6:08pm

@dancer dancer merged commit ce7cd2f into vercel:main Apr 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants